package panda.server;


/**
 * Contains a line from a deck.txt file. Includes number of copies (n), the card's name (cardName), and optionally its
 * ID number within its set.  The set abbreviation itself is the 2nd optional argument. 
 * @author zane.tian@gmail.com
 */
public class DeckEntry {
	private String cardName;
	private int numberOfCopies;
	private String set;
	private int ID;
	
	public DeckEntry(int copies, String cardName, int ID, String set) {
		this.numberOfCopies = copies;
		this.cardName = cardName;
		this.set = set;
		this.ID = ID;
	}
	
	public String getCardName() {
		return cardName;
	}
	
	public int getCopies() {
		return numberOfCopies;
	}
	
	public int getID() {
		return ID;
	}
	
	public String getMagicSetAbbrev() {
		return set;
	}
	
	public String toString() {
		return numberOfCopies + ", " + cardName + ", " + ID + ", " + set;
	}
}